﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Brjostagjof.Models.ImageViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Brjóstagjöf - Bæta Inn Mynd Af Barninu Þínu
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>Bættu inn mynd af barninu þínu</h1>
 <% using (Html.BeginForm("Upload", "Home", FormMethod.Post, new { enctype = "multipart/form-data" }))
    { %>
        <div>
            <input type="file" id="imageFile" name="imageFile" />
        </div>
        <div>
            <label for="image_ImageTitle">Titill:</label>
            <%: Html.TextBoxFor(model => model.image.ImageTitle) %>
            <%: Html.ValidationMessageFor(model => model.image.ImageTitle) %>
        </div>
        <div>
            <label for="image_ImageMessage">Af hverju/m er myndin:</label>
            <%: Html.TextBoxFor(model => model.image.ImageMessage) %>
            <%: Html.ValidationMessageFor(model => model.image.ImageMessage) %>
        </div>
            <p>
            <%: Html.HiddenFor(model => model.image.ChildID) %>
            </p>
        <p>
            <input type="submit" value="Vista mynd" />
        </p>
    <%} %>
      <p class= "tilbaka">
        <%: Html.ActionLink("Til Baka", "Bornin") %>
    </p>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Actions" runat="server">
</asp:Content>
